//package com.zq.spring;
//
//import com.zq.spring.controller.IndexController;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.SpringApplication;
//import org.springframework.boot.autoconfigure.SpringBootApplication;
//import org.springframework.context.ConfigurableApplicationContext;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.PostConstruct;
//
//@SpringBootApplication
//@RestController
//public class LearingApplication {
//
//    @Autowired
//    public ConfigurableApplicationContext applicationContext ;
//
//    public static void main(String[] args) {
//        SpringApplication.run(LearingApplication.class, args);
////        Thread.in
// //       ThreadLocal
//        //applicationContext.getBean(IndexController.class);
//        //java.util.concurrent.
//    }
//
//    //   注意
//    @PostConstruct
//    public void demoTest(){
//        System.out.println("demo");
//    }
//
//    @GetMapping("get")
//    public String test(){
//        IndexController indexController = (IndexController) applicationContext.getBean("indexController");
//        System.out.println(indexController);
//        return indexController.toString();
//    }
//
//
//
//}
